package day1026.FeiJi;
//飞机父类
public class Aircraft {
    private double zizhong;//自重
    private double gaodu;//高度

    public Aircraft() {
    }

    public Aircraft(double zizhong, double gaodu) {
        this.zizhong = zizhong;
        this.gaodu = gaodu;
    }

    public double getZizhong() {
        return zizhong;
    }

    public void setZizhong(double zizhong) {
        this.zizhong = zizhong;
    }

    public double getGaodu() {
        return gaodu;
    }

    public void setGaodu(double gaodu) {
        this.gaodu = gaodu;
    }

    //起飞
    public void qifei(){
        System.out.println("飞机起飞");
    }

    //加速
    public void jiasu(){
        System.out.println("飞机加速");
    }

    //降落
    public void jiangluo(){
        System.out.println("飞机降落");
    }
}
